# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=millipixels
pkgver=0.22.0
pkgrel=5
pkgdesc="Camera application for the Librem 5"
url="https://source.puri.sm/Librem5/millipixels"
arch="all"
license="GPL-3.0-only"
depends="
	exiftool
	graphicsmagick
	libraw-tools
	v4l-utils
	ffmpeg
	"
makedepends="
	glib-dev
	gtk+3.0-dev
	libbsd-dev
	libcamera-dev
	libexif-dev
	libraw-dev
	meson
	pulseaudio-dev
	rust
	tiff-dev
	zbar-dev
	"
source="https://source.puri.sm/Librem5/millipixels/-/archive/v$pkgver/millipixels-v$pkgver.tar.gz
	0001-Workaround-libtiff-4.5.1.patch
	"
options="!check" # There's no testsuite
builddir="$srcdir/millipixels-v$pkgver"

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
2e65125510c6e1618f680032251fc25d327e829dc2d744cdcf08b2a2d3146318847c02d5084fd95c53d49d8f3544cafe4dba303cd164f76ed45e7cb183d8945d  millipixels-v0.22.0.tar.gz
cdd8b11515b8bfe8f9b017d28441b5cf9978cd7855a20255e7bb3cbbfd4789d11a081911d3ff387c642a92dfa6cc994d2b960225b938eb512d18a73d013f598e  0001-Workaround-libtiff-4.5.1.patch
"
